<%--
  Created by IntelliJ IDEA.
  User: 白菜你个cabbage
  Date: 2019/10/17
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>访问网站人数</title>
</head>
<body>
<%
    int num = 0;
    if (application.getAttribute("num") != null) {
        num = (Integer) application.getAttribute("num");
    }
    num++;
    out.println("当前网页访问人数为" + num);
    application.setAttribute("num", num);
%>
</body>
</html>
